package com.bom.boot.easy.entity;

import com.bom.boot.easy.core.comment.Comment;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

@Data
@Entity(name = "core_ds")
@Comment("数据库配置")
public class DsEntity implements Serializable {
    @Id
    @Comment("数据库的名称,英文简称")
    private String key;

    @Comment("驱动类")
    private String driverClassName;
    @Comment("地址")
    private String url;
    @Comment("账号")
    private String username;
    @Comment("密码")
    private String password;

    @Comment("使用mybatis的xml配置")
    @Column(columnDefinition = "TEXT")
    private String xmlConfig;

}
